<template>
       <div class='content'>
            asdasdasd
       </div>
</template>

<script setup>

import { dayjs } from 'element-plus'
// 扩展插件
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'
dayjs.extend(isSameOrBefore)
dayjs.extend(isSameOrAfter)



const openingDate = dayjs('2023-12-13 00:00:00')
const now = dayjs()
console.log(openingDate.diff(now, 'h'))


console.log(dayjs().subtract(10, 'day').format('YYYY-MM-DD HH:mm:ss'))

</script>